<script type="text/javascript" src="<?php echo $this->baseUrl() ?>/public/js/jquery.form.js"></script>
<?php
	$status = array(
		'0' => 'Còn mới',
		'1' => 'Xài rồi'
	);
	$allow_bid = array(
		'0' => 'Tất cả thành viên',
		'1' => 'Chỉ thành viên xác minh'
	);
	$payment = array(
		'1' => 'Trực tiếp',
		'2' => 'Bank',
		'3' => 'Chuyển thành điểm'
	);
	$district = array(
		'1' => 'Quận 5',
		'2' => 'Quận Bình Thạnh'
	);
?>
<div class="grid_20">
        <span class="my_account">&gt;&gt; Két Của Tui &gt;&gt; Đăng Bán</span><br><br>
        <div class="step_top">              
            <a href="<?php echo $this->fullUrl('/bid/product/create1/') ?>"><div class="grid_4 step alpha">
                <div class="step_content">
                    <span class="step_name">buoc 1</span><br>	
                    <span class="step_des">(đăng ký nhóm sản phẩm)</span>
                </div>
            </div></a>
            <div class="grid_1"><div class="sep_arrow"></div></div>
            
            <a href="<?php echo $this->fullUrl('/bid/product/create2/') ?>"><div class="grid_4 step">
                <div class="step_content">
                    <span class="step_name">buoc 2</span><br>	
                    <span class="step_des">(đăng ký lên sàn)</span>
                </div>
            </div></a>
            
            <div class="grid_1"><span class="sep_arrow"></span></div>                
            
            <a href="<?php echo $this->fullUrl('/bid/product/create3/') ?>"><div class="grid_4 step">
                <div class="step_content">
                    <span class="step_name">buoc 3</span><br>	
                    <span class="step_des">(đăng hình sản phẩm)</span>
                </div>
            </div></a>
            <div class="grid_1"><span class="sep_arrow"></span></div>                
            
            <a href="<?php echo $this->fullUrl('/bid/product/create4/') ?>"><div class="grid_4 step_current omega">
                <div class="step_content">
                    <span class="step_name">buoc 4</span><br>	
                    <span class="step_des">(xác nhận)</span>
                </div>
            </div></a>
        </div> <!-- End Step top -->                           
		<div class="clear"></div>                    
        <div class="sep_big grid_19 prefix_1 alpha"><hr></div>        		
        <div class="clear"></div>
        
        <div class="grid_19 prefix_1 alpha">
            <div class="step_content_conclu">
                <div class="grid_5 alpha">Chuyên mục:</div>
                <div class="grid_14 omega"><?php if(isset($this->category)) echo $this->category->name ?></div>
                
                <div class="grid_5 alpha">Tiêu đề tin:</div>
                <div class="grid_14 omega"><?php echo $this->product->title ?></div>   
                
                <div class="grid_5 alpha">Mô tả chi tiết:</div>
                <div class="grid_14 omega"><?php echo $this->product->description ?></div> 
                
                <div class="grid_5 alpha">Tình trạng:</div>
                <div class="grid_14 omega"><?php echo $status[$this->product->status] ?></div> 
                
                <div class="grid_5 alpha">Giá khởi điểm:</div>
                <div class="grid_14 omega"><?php echo $this->product->start_price ?> PTZ</div> 
                
                <div class="grid_5 alpha">Giá muốn bán:</div>
                <div class="grid_14 omega"><?php echo $this->product->expected_price ?> PTZ</div>
                
                <div class="grid_5 alpha">Giá bán ngay:</div>
                <div class="grid_14 omega"><?php echo $this->product->salenow_price ?> PTZ</div> 
                
                <div class="grid_5 alpha">Cho phép đặt giá từ:</div>
                <div class="grid_14 omega"><?php echo $allow_bid[$this->product->allow_bid] ?></div> 
                
                <div class="grid_5 alpha">Thời gian lên sàn:</div>
                <div class="grid_14 omega"><?php echo $this->product->avaiable_time ?> ngày</div>
                
                <div class="grid_5 alpha">Thông tin giao hàng:</div>
                <div class="grid_14 omega"><?php echo $this->product->shipping_info ?></div> 
                
                <div class="grid_5 alpha">Phương thức thanh toán:</div>
                <div class="grid_14 omega"><?php echo $payment[$this->product->payment_method] ?></div> 
                
                <div class="grid_5 alpha">Khu vực bán:</div>
                <div class="grid_14 omega"><?php echo $district[$this->product->district] ?></div>
                
                <div class="grid_5 alpha">Dịch vụ thêm:</div>
                <div class="grid_14 omega">Đăng mục kiểu Gallery View + Đăng mục hot trang chủ</div>                                                                                                                                           
                <div class="sep_his"><hr></div>
                Hình Ảnh: <br>
              
                <div class="grid_2 alpha nimage"><img src="<?php echo $this->baseUrl('/public/upload/thumbs/').$this->product->img1 ?>" width="70" height="51"/></div>
                <div class="grid_2 nimage"><img src="<?php echo $this->baseUrl('/public/upload/thumbs/').$this->product->img2 ?>" width="70" height="51"/></div>
                <div class="grid_2 nimage"><img src="<?php echo $this->baseUrl('/public/upload/thumbs/').$this->product->img3 ?>" width="70" height="51"/></div>
                <div class="grid_2 nimage"><img src="<?php echo $this->baseUrl('/public/upload/thumbs/').$this->product->img4 ?>" width="70" height="51"/></div>                                        
                <div class="grid_2 nimage omega"><img src="<?php echo $this->baseUrl('/public/upload/thumbs/').$this->product->img5 ?>" width="70" height="51"/></div>                                                                  

			</div><!-- End Step Content -->
            
            
            <div class="sep_his"><hr></div>
			Nếu bạn đã chắc chắn cho sự lựa chọn của mình, xin vui lòng chọn tiếp tục<br><br>
        <div class="clear"></div>
        <form id="form4" action="<?php echo $this->fullUrl('/bid/product/savestep4/') ?>" method="post">
		<div class="prefix_6 grid_3 suffix_1 alpha"><input type="button" class="textStep" name="back" value="Quay Lại &lt;&lt;" onclick="window.location='<?php echo $this->fullUrl('/bid/product/create3/') ?>'"></div>
        <div class="grid_9 omega"><input type="submit" class="textStep" name="forward" value="Tiếp Tục &gt;&gt;"></div>
        </form>
        </div> 
            
</div>
<script type="text/javascript">
	$('#form4').ajaxForm({
		success: function(){
			window.location = "<?php echo $this->fullUrl('/bid/') ?>";
		}
	});
</script>
